package com.wxc.wxcwzq.web.mapper;

import java.util.List;

import com.github.pagehelper.Page;
import com.wxc.wxcwzq.web.entity.SysPermission;

public interface SysPermissionMapper {
	//分页查询
	Page<SysPermission> queryAllRoleInfo(SysPermission permission);
	//
	SysPermission selectByPrimaryKey(Long id);
    //根据角色id查询
    List<SysPermission> selectPerByRoleId(Long roleId);
    //物理删除
    int deleteByPrimaryKey(Long id);
    //逻辑删除
    int deletePermission(Long id);
    //更新
    int updatePermission(SysPermission record);
    //插入
    int insertPermission(SysPermission record);
    
}